package com.wzh.yebServe.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wzh.yebServe.pojo.ResultBean;
import com.wzh.yebServe.pojo.Role;

import java.util.List;

/**
 * @Author wzh
 * @create 2022/11/16 15:44
 * @Description:
 */
public interface IRoleService extends IService<Role> {


    List<Role> getAllRoles();

    ResultBean addRole(Role role);

    ResultBean updateRole(Role role);

    ResultBean deleteRole(Integer id);

    ResultBean deleteRoleByids(Integer[] ids);

    ResultBean updateUserRole(Integer userId, Integer[] rids);
}
